export default cc.Class({
    extends: cc.Component,

    properties: {
        boundsLabel: cc.Label,
        timesLabel: cc.Label,
        count: 0,
        times: 1
    },

    config(info) {
        this.count = info.count
        this.boundsLabel.string = `${this.count}钻石`
    },


    // use this for initialization
    onLoad: function () {
    },

    reword() {
        /*
        this.times++
        this.timesLabel.string = `x${this.times}`
        window.sock.reword({ count: this.count })
        */
        if (typeof (NATIVE) !== "undefined") {
            console.log("hello world")
            NATIVE.notifyReward(10)
        }
    }
});
